from google.appengine.api import xmpp
from google.appengine.ext import webapp
from google.appengine.api import mail
from bot.core import MessageProcessor
import logging

class XMPP_MessageHandler(webapp.RequestHandler):
    def post(self):
        message=MessageProcessor(self.request.POST)

class XMPP_ErrorMessageHandler(webapp.RequestHandler):
    def post(self):
        message = xmpp.Message(self.request.POST)
        logging.error("XMPP Error: from %s,to %s '%s'" %
                       (message.sender(),message.to(),message.body()))

